package org.example.sort;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.io.*;
import java.util.HashMap;
import java.util.logging.Logger;

/**
 * 测试读取数字,读取前100个
 */

public class TestNums {
    public static void main(String[] args) throws IOException {
        File file = new File("sortNum.txt");
        Logger logger = Logger.getLogger("log");
        System.out.println(file.length());
        FileReader bufferedReader = new FileReader(file);
        FileWriter fileWriter = new FileWriter(new File("resultReal.txt"));
        int num;
        try{
            while ((num=bufferedReader.read())!=-1){
                fileWriter.write(String.valueOf(num)+",");
            }
        }finally {
             bufferedReader.close();
             fileWriter.close();
        }


    }
}
